package com.robot.agent.pojo;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * contract实体类
 *
 * @author wuyunbin
 */
@Entity
@Table(name = "contract")
public class Contract implements Serializable {
    /**
     * 合同id
     */
    @Id
    private String id;
    /**
     * 合同标题
     */
    private String title;
    /**
     * 合同作者
     */
    private String author;
    /**
     * 合同内容
     */
    private String content;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Contract{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", author='" + author + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
